<template>
  <div>
    <Swipe>
      <SwipeItem>
        <van-swipe  :autoplay="3000" >
          <van-swipe-item v-for="(item,index) in Image" :key="index">
             <img :src="item.picUrl" alt="" height="300px" width="100%">
          </van-swipe-item>
        </van-swipe>
      </SwipeItem>
    </Swipe>
  </div>
</template>
<script>
import { Swipe, SwipeItem } from "vant";
import "vant/lib/index.css";
export default {
  components: {
    Swipe,
    SwipeItem,
  },
  props: {},
  data() {
    return {
      Image: [],
    };
  },
  created() {
    this.$Acc.YanxuanImg().then((res) => {
      this.Image = res.data.data;
      // console.log(res.data.data);
    });
  },
};
</script>